package basic3;

public class J03_23 {

	public static void main(String[] args) {
		int x =3, y=2, x2=2, y2=4, z;
		
		if (x > 2) {
		  if(y > 2)  { 
			z = x + y;
		  System.out.println ("z is " + z);
		}
		}
		else System.out.println("x is " + x) ;
		
		
		if (x > 2)
		{
			if (y2 > 2 );
			{
				z = x + y2;
				System.out.println("x is " + z);
			}
		}
		else System.out.println("x is " + x) ;

		
		
		if (x2 > 2)
		{
			if  (y > 2)
			{
				z = x2 +y;
				System.out.println("x is " + z);
			}
		}
		
	  else System.out.println("x is " + x2) ;
	
	}

}
